﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WodLib
{
    [Serializable()]
    public abstract class ConciousBeing : Being
    {
        [System.ComponentModel.Category(Config.DescriptionConsts.OtherTraits)]
        public virtual int WillpowerDots
        {
            get
            {
                return 0;
            }
        }

        protected int willpower = 0;

        [System.ComponentModel.Category(Config.DescriptionConsts.OtherTraits)]
        public int WillpowerPoints
        {
            get
            {
                return willpower;
            }
            set
            {
                if (value > WillpowerDots)
                {
                    willpower = WillpowerDots;
                }
                else
                {
                    willpower = value;
                }
            }
        }
    }
}
